package cn.bdqn.pojo;

import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName video
 */
@Data
public class Video implements Serializable {
    /**
     * 
     */
    private Long id;

    /**
     * 
     */
    private Long languageid;

    /**
     * 
     */
    private String title;

    /**
     * 
     */
    private String actors;

    /**
     * 
     */
    private String category;

    /**
     * 
     */
    private Integer nums;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Video other = (Video) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getLanguageid() == null ? other.getLanguageid() == null : this.getLanguageid().equals(other.getLanguageid()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getActors() == null ? other.getActors() == null : this.getActors().equals(other.getActors()))
            && (this.getCategory() == null ? other.getCategory() == null : this.getCategory().equals(other.getCategory()))
            && (this.getNums() == null ? other.getNums() == null : this.getNums().equals(other.getNums()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getLanguageid() == null) ? 0 : getLanguageid().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getActors() == null) ? 0 : getActors().hashCode());
        result = prime * result + ((getCategory() == null) ? 0 : getCategory().hashCode());
        result = prime * result + ((getNums() == null) ? 0 : getNums().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", languageid=").append(languageid);
        sb.append(", title=").append(title);
        sb.append(", actors=").append(actors);
        sb.append(", category=").append(category);
        sb.append(", nums=").append(nums);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}